import Vue from 'vue';

const vm = new Vue()

// 列表详情
function listDetail (params) {
	return vm.$http.post('/apistore/news/details',params);
}
// 科普详情页接口
function athey(params) {
	return vm.$http.post('/news/scienceKlgy/findContent/v1',params);
}
// 论文详情页接口
function paper(params) {
	return vm.$http.post('/news/financeThesis/details/v1',params);
}
// 财经数据详情页接口
function financeNews(params) {
	return vm.$http.post('/news/financeNews/details/v1',params);
}
// 决策要参详情页接口
function reference(params) {
	return vm.$http.post('/news/reference/details/v1',params);
}

// 宏观预测详情页接口
function macro(params) {
	return vm.$http.post('/news/macro/detail/v1',params);
}

// 渠道合作详情页接口
function channel(params) {
	return vm.$http.post('/news/channel/details/v1',params);
}

// 视频评详情
function videoDetail (params) {
	return vm.$http.post('/video/findVideo/v1',params);
}

// newDetail查询是否订阅接口
function newDetailFocusOn (params) {
	return vm.$http.post('/user/subscribe/query',params);
}

// newDetail点击订阅
function newDetailAddFocus (params) {
	return vm.$http.post('/user/subscribe/addOrCancel',params);
}

// 学者圈查询是否订阅接口
function focusOn (params) {
	return vm.$http.post('/user/focus/query/v1',params);
}
// 学者圈点击订阅
function addFocus (params) {
	return vm.$http.post('/user/focus/addOrCancel/v1',params);
}

// 点击点赞
function addPraise (params) {
	return vm.$http.post('/news/praise/praise/v1',params);
}

// 添加历史记录
function readHistory (params) {
	return vm.$http.post('/user/read_history/create/v1',params);
}

// 专题详情点赞
function unifycomments (params) {
	return vm.$http.post('/news/unifycomments/praise/v1',params);
}
// 专题详情点赞
function isCheck (params) {
	return vm.$http.post('/user/detail/isCheck',params);
}

// 人物点击之后出名人名言
function getByModuleId (params) {
	return vm.$http.post('/news/motto/getByModuleId/v1',params);
}
// 人物点击之后list
function coreList (params) {
	return vm.$http.post('/news/coreList/v1',params);
}

// 我的回放
function myPlayback (params) {
	return vm.$http.post('/video/liveVideo/findList',params);
}

//查询直播详情
function myLiveParticulars (params) {
    return vm.$http.post('/video/liveVideo/query',params);
}
export default{
    videoDetail,
    listDetail,
    athey,
    paper,
    financeNews,
    reference,
    macro,
    channel,
    newDetailFocusOn,
    newDetailAddFocus,
    focusOn,
    addFocus,
    addPraise,
    readHistory,
    unifycomments,
    isCheck,
    getByModuleId,
    coreList,
    myPlayback,
    myLiveParticulars
}